From 2d35f7a8e18c083acd246f22d028cebb88add40a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Wed, 1 May 2013 17:50:14 +0200 Subject: [PATCH] tests: make deprecated functions not warn We still want to test them though. --- tests/css/parser/test-css-parser.c | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/tests/css/parser/test-css-parser.c b/tests/css/parser/test-css-parser.c index ebe2b2bb5a..1cf20379fc 100644 --- a/tests/css/parser/test-css-parser.c +++ b/tests/css/parser/test-css-parser.c @@ -301,6 +301,7 @@ main (int argc, char **argv) { gtk_test_init (&argc, &argv); + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; /* Add a bunch of properties so we can test that we parse them properly */ gtk_style_properties_register_property (NULL, g_param_spec_boolean ("boolean-property", @@ -320,18 +321,6 @@ main (int argc, char **argv) "test uint properties", 0, G_MAXUINT, 0, G_PARAM_READABLE)); - gtk_style_properties_register_property (NULL, - g_param_spec_float ("float-property", - "float property", - "test float properties", - -G_MAXFLOAT, G_MAXFLOAT, 0.0f, - G_PARAM_READABLE)); - gtk_style_properties_register_property (NULL, - g_param_spec_double ("double-property", - "double property", - "test double properties", - -G_MAXDOUBLE, G_MAXDOUBLE, 0.0, - G_PARAM_READABLE)); gtk_style_properties_register_property (NULL, g_param_spec_string ("string-property", "string property", @@ -397,6 +386,7 @@ main (int argc, char **argv) "test uint8 properties", 0, G_MAXUINT8, 0, G_PARAM_READABLE)); + G_GNUC_END_IGNORE_DEPRECATIONS; if (argc < 2) { -- 2.30.2